﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class vLogRegistros : System.Web.UI.Page
{
    ManejoHorarios _mh;
    protected void Page_Load(object sender, EventArgs e)
    {
        _mh = new ManejoHorarios();
    }
    protected void btnConsular_Click(object sender, EventArgs e)
    {
        gvRegistros.DataSource = _mh.ConsultarLog(string.Format("{0}-{1}-{2}",calIni.SelectedDate.Year.ToString(),calIni.SelectedDate.Month.ToString(),calIni.SelectedDate.Day.ToString()),string.Format("{0}-{1}-{2}",calFin.SelectedDate.Year.ToString(),calFin.SelectedDate.Month.ToString(),calFin.SelectedDate.Day.ToString()),txtHoraIni.Text,txtHoraFin.Text);
        gvRegistros.DataBind();
    }
}